import { IsArray, IsBoolean, IsInt, IsNotEmpty, IsObject, IsOptional, IsString, Max, MaxLength, Min } from "class-validator";

export default class CreateDto{
    @MaxLength(20)
    @IsNotEmpty()
    @IsString()
    name: string;

    @Min(1)
    @IsInt()
    deviceTypeId: number;

    @IsObject()
    params: object;
}